<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="../../lib/angular.js"></script>
    <script src="../../lib/angular-route.js"></script>
    <script type="text/javascript">
        angular.module('myApp',['ngRoute'])
                .directive('myDirective',function(){
                    return {
                        restrict:'E',
                        replace:true,
                        template:'<a href="http://www.banggo.com" target="_blank">Click me to go go Banggo</a>'
                    }
                });
    </script>
</head>
<body ng-app="myApp">
    <div>
        <my-directive></my-directive>
    </div>
</body>
</html>